/*
 * @Author: elfsigin 2714838232@qq.com
 * @Date: 2024-11-15 15:32:41
 * @LastEditors: elfsigin 2714838232@qq.com
 * @LastEditTime: 2024-11-17 17:39:40
 * @FilePath: \VUE3-ELEMENT-PLUS\manager-pei\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import router from './router'
import store from './store'

import request from './utils/request';
import storage from './utils/storage'
import './assets/style/index.scss';
import './assets/style/reset.css';
import api from './api'
import axios from 'axios'
import config from './config'

axios.get(config.mockApi+'/login').then((res)=>{
    console.log(1);
    
    console.log(res);
    
})




const app=createApp(App)

app.config.globalProperties.$request=request
app.config.globalProperties.$storage=storage
app.config.globalProperties.$api=api

app.use(ElementPlus)
app.use(router);
app.use(store);

app.mount('#app')
// console.log("环境变量", import.meta.env);

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}